load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "channelz",
    srcs = [
        "funcs.go",
        "logging.go",
        "types.go",
        "types_linux.go",
        "types_nonlinux.go",
        "util_linux.go",
        "util_nonlinux.go",
    ],
    importmap = "github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/internal/channelz",
    importpath = "google.golang.org/grpc/internal/channelz",
    visibility = ["//vendor/google.golang.org/grpc:__subpackages__"],
    deps = [
        "//vendor/google.golang.org/grpc/connectivity",
        "//vendor/google.golang.org/grpc/credentials",
        "//vendor/google.golang.org/grpc/grpclog",
        "//vendor/google.golang.org/grpc/internal/grpclog",
    ] + select({
        "@io_bazel_rules_go//go/platform:android": [
            "//vendor/golang.org/x/sys/unix",
        ],
        "@io_bazel_rules_go//go/platform:linux": [
            "//vendor/golang.org/x/sys/unix",
        ],
        "//conditions:default": [],
    }),
)
